import styled from "styled-components";

export const Wrapper = styled.div`
    .top {
        justify-content: space-between;
    }

    .homework-list {
        padding-top: 16px;
        border: 1px solid #e7ebf0;
        border-radius: 8px;
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .no-data {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .no-data img {
        margin: 160px auto 22px auto;
        width: 400px;
    }
`;

export const HomeworkWrapper = styled.div`
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 0 16px;
    background: #fff;
    overflow: hidden;

    .content {
        width: 100%;
        background: #fff;
        display: flex;
        position: relative;

        .left {
            flex-direction: column;
            min-width: 85px;
            margin-right: 16px;
            font-size: 12px;
            display: flex;
            align-items: center;

            img {
                height: 40px;
                max-width: 40px;
                margin-bottom: 10px;
            }

            .another-name {
                position: relative;
                margin-top: 5px;
                line-height: 13px;
                display: inline-block;
                width: 85px;
                text-align: center;
                max-height: 31px;
                margin-bottom: 2px;
            }
        }

        .right {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            width: 100%;
            border-bottom: 1px solid #eee;
            padding: 0 0 4px;
            font-size: 14px;

            .info {
                text-align: start;

                .title {
                    font-size: 16px;
                    margin-bottom: 12px;
                    max-width: 500px;
                    cursor: pointer;
                    color: #212121;
                    display: -webkit-box;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    word-break: break-all;
                    white-space: normal;
                    -webkit-line-clamp: 1;
                    -webkit-box-orient: vertical;
                }

                .sub-bar {
                    color: #5f6368;
                    font-size: 12px;

                    .divider {
                        display: inline-block;
                        width: 1px;
                        height: 1em;
                        margin: 0 8px;
                        vertical-align: middle;
                        position: relative;
                        background-color: #dadce0;
                    }
                }

                .state {
                    font-size: 12px;
                    padding-top: 8px;

                    span {
                        color: #ff941f;
                    }
                }
            }

            .function {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                flex: 1;
                font-size: 12px;
            }
        }
    }
`;
